//
//  NSDateFormatter+Util.m
//  oschina_song
//
//  Created by song on 16/1/27.
//  Copyright © 2016年 song. All rights reserved.
//

#import "NSDateFormatter+Util.h"

@implementation NSDateFormatter (Util)

+(instancetype)shareInstance
{
    static NSDateFormatter *formatter;
    static dispatch_once_t *once_t;
    dispatch_once(&once_t, ^{
        
        formatter = [NSDateFormatter new];
        formatter.dateFormat =@"yyyy-MM-dd HH:mm:ss";
    });
    
    return formatter;
}

@end
